<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Hello World!</title>

</head>

<body>
<div th:if="${session.loginUser==null}" align="center">
    <a th:href="@{/toLogin}">登录</a>
</div>
<div align="center" th:if="${session.loginUser!=null}">
    <a th:href="@{/logout}">注销</a>
</div>
<div style="text-align: center;margin-top: 50px" shiro:hasPermission="user:root">
    <form action="/node/uploadNode" method="post" enctype="multipart/form-data">
        <p><input type="file" name="fileName"/></p>
        <p><input type="submit" value="上传节点"/></p>
    </form>
    <form action="/node/listAllNodes" >
        <p><input type="submit" value="查询节点"/></p>
    </form>
    <form method="get" action="https://nodepit.com/category/">
        <p><button type="submit">下载节点</button></p>
    </form>
</div>

<div style="text-align: center;margin-top: 50px" shiro:hasPermission="user:add">
    <form action="/node/uploadNode" method="post" enctype="multipart/form-data">
        <p><input type="file" name="fileName"/></p>
        <p><input type="submit" value="上传节点"/></p>
    </form>
</div>


<div style="text-align: center;margin-top: 50px" shiro:hasPermission="user:add">
    <form action="/process/upload" method="post" enctype="multipart/form-data">
        <p><input type="file" name="fileName"/></p>
        <p><input type="submit" value="上传流程"/></p>
    </form>
</div>
<div style="text-align: center;margin-top: 50px" shiro:hasPermission="user:root">
    <form action="/process/upload" method="post" enctype="multipart/form-data">
        <p><input type="file" name="fileName"/></p>
        <p><input type="submit" value="上传流程"/></p>
    </form>
    <form action="/process/listAll" >
        <p><input type="submit" value="查询流程"/></p>
    </form>
    <form method="get" action="https://nodepit.com/server/">
        <p><button type="submit">下载流程</button></p>
    </form>
</div>





</body>

</html>